/*
 * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 */

.ck-editor {
	margin: 1.5em 0;
}

.ck-editor .ck-editor__editable {
	padding: 1em;
}

.ck-editor .ck-editor__editable > :first-child {
	margin-top: 0;
}

.ck-editor .ck-editor__editable > :last-child {
	margin-bottom: 0;
}

/* Reset h1's styling – https://github.com/ckeditor/ckeditor5-heading/issues/86 */
.ck-editor .ck-editor__editable h1 {
	display: block;
	margin-bottom: .5em;
}

/* By default Umberto uses a trick with non breaking spaces around <code> to fix space rendering.
It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
.ck-editor .ck-editor__editable code:before,
.ck-editor .ck-editor__editable code:after {
	content: '' !important;
	letter-spacing: 0 !important;
	display: none !important; /* Firefox is very stubborn. */
}

.ck-reset.ck-list {
	/* See https://github.com/ckeditor/ckeditor5/issues/494 */
	margin-left: 0;
}

/* examples/builds/inline-editor.html */
.live-snippet .image-style-left, .live-snippet .image-style-right {
	float: left;
	height: auto;
	width: 50%;
	margin-top: .5rem;
	margin-right: 2.5rem;
}

.live-snippet .image-style-right {
	float: right;
	margin-right: 0;
	margin-left: 2.5rem;
}

.live-snippet .image img {
	margin: 0 auto;
}

.live-snippet blockquote p:first-of-type {
	margin-bottom: 1.5rem;
}

#snippet-inline-editor .ck-editor__editable {
	margin-bottom: 1rem;
	padding: 2rem;
}

#snippet-inline-editor .ck-editor__editable:not(.ck-focused) {
	border: 1px solid rgba(0, 0, 0, 0.15);
}

#snippet-inline-editor h2, #snippet-inline-editor h3 {
	margin-top: 0;
	padding-top: 0;
	border-bottom: 0;
}
#snippet-inline-editor header {
	text-align: center;
}
#snippet-inline-editor header h2 {
	margin-bottom: 0;
	font-size: 2.1rem;
}
#snippet-inline-editor header h3 {
	color: rgba(5, 22, 42, 0.59);
	font-weight: 600;
	font-size: 1.6rem;
}

.demo-row {
	width: 100%;
	display: -ms-flexbox;
	display: flex;
}

.demo-row__half {
	width: 50%;
}

.demo-row__half:first-of-type {
	padding-right: .5rem;
}

.demo-row__half:last-of-type {
	padding-left: .5rem;
}

.demo-row__third {
	width: 33.3333%;
}

.demo-row__third > div {
	padding: 2.5rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.demo-row__third:nth-of-type(2) {
	padding-left: 1rem;
	padding-right: 1rem;
}

.demo-row h3 {
	margin: 0;
}

.demo-row p {
	margin-bottom: 0;
}
